
include std/unittest.e
include std/io.e
include std/error.e
include qt/core.e as qt
include qt/tree.e as qt_tree

set_test_verbosity(TEST_SHOW_ALL)

object _ =  qt:init(),
	w  = qt:loadUi(read_file("test.ui")),
	tw = qt:findChild(w, "treeWidget")



qt_tree:set_header_titles(tw, { "One", "Two", "Three" })
qt_tree:add(tw, { "1", "", "" })
qt_tree:add(tw, { "", "1", "" })
qt_tree:add(tw, { "", "", "1" })

test_equal("", 0, 0 ) 
qt_tree:add(tw, {})


test_equal("", 0, 0 ) 
qt_tree:add(tw, {""})

test_equal("", 0, 0 ) 
--~ qt_tree:add(tw, {0})
--~ qt_tree:add(tw, {0})

test_report()
